package com.ruoyi.qianhuankuan.mapper;

import java.util.List;
import com.ruoyi.qianhuankuan.domain.Qianhuankuan;
import org.apache.ibatis.annotations.Param;

/**
 * 欠还款表Mapper接口
 * 
 * @author ruoyi
 * @date 2023-02-07
 */
public interface QianhuankuanMapper 
{
    /**
     * 查询欠还款表
     * 
     * @param id 欠还款表主键
     * @return 欠还款表
     */
    public Qianhuankuan selectQianhuankuanById(Long id);

    /**
     * 查询欠还款表列表
     * 
     * @param qianhuankuan 欠还款表
     * @return 欠还款表集合
     */
    public List<Qianhuankuan> selectQianhuankuanList(Qianhuankuan qianhuankuan);

    public List<Qianhuankuan> selectAllQianhuankuanList();

    public List<Qianhuankuan> selectAll2QianhuankuanList(String cangku);

    /**
     * 新增欠还款表
     * 
     * @param qianhuankuan 欠还款表
     * @return 结果
     */
    public int insertQianhuankuan(Qianhuankuan qianhuankuan);

    /**
     * 修改欠还款表
     * 
     * @param qianhuankuan 欠还款表
     * @return 结果
     */
    public int updateQianhuankuan(Qianhuankuan qianhuankuan);

    /**
     * 删除欠还款表
     * 
     * @param id 欠还款表主键
     * @return 结果
     */
    public int deleteQianhuankuanById(Long id);

    /**
     * 批量删除欠还款表
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQianhuankuanByIds(String[] ids);

    /**
     * 批量删除客户欠款
     *
     * @return 结果
     */
    public List<Qianhuankuan> selectQianhuankuanListAll(@Param("today") String today);
}
